//版心
@mixin container {
    width: 1200px;
    margin: 0 auto;
    // background-color: gold;
}

//文字样式
@mixin afonts {
    text-decoration: none;
    color: #000;
}

#main {
    .bg {
        .topnav {
            .first{
                width: 220px;
                color: #fff;
                background-color: rgb(67, 36, 12);
            }

            li:nth-child(3){
                background-color: rgb(254, 228, 78);
                a{
                    color: #000;
                }
            }
        }
    }


    .main-mesg {
        @include container();
        overflow: hidden;

        .zTitle {
            font-size: 24px;
            font-weight: bold;
            background-color: rgb(254, 249, 221);
            padding: 0 30px;
            box-sizing: border-box;
            line-height: 56px;
        }

        .s-nav {
            display: flex;
            margin-top: 5px;
            background-color: white;

            a {
                @include afonts();
                display: inline-block;
                width: 106px;
                height: 56px;
                line-height: 56px;
                text-align: center;
                font-size: 18px;

                &:hover {
                    color: gold;
                }
            }
        }

        .goods {
            @include container();
            height: 100%;
            box-sizing: border-box;
            padding-left: 6px;
            display: flex;
            flex-direction: column;
            margin-top: 20px;

            .goodsList {
                width: 1200px;
                display: flex;
                flex-wrap: wrap;
                justify-content: space-around;
            }

            li {
                margin-right: 10px;
                margin-bottom: 25px;

                .product {
                    width: 276px;
                    height: 389px;
                    display: block;
                    color: #000;
                    background-color: white;
                    cursor: pointer;

                    &:hover {
                        box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
                    }

                    img {
                        width: 276px;
                        height: 276px;
                    }

                    .mesg {
                        padding: 10px 17px 17px 17px;
                        box-sizing: border-box;
                        font-size: 14px;
                        color: #877a73;

                        .title {
                            width: 242px;
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            margin: 0 auto;
                        }

                        .main {
                            height: 20px;
                            line-height: 20px;
                            margin-top: 16px;
                            display: flex;
                            justify-content: space-between;

                            p {
                                width: 40px;
                                background-color: #df2b2f;
                                color: #fff;
                                border-radius: 2px;
                                line-height: 20px;
                                text-align: center;
                            }

                            span {
                                margin-right: 10px;
                            }
                        }

                        .foot {
                            height: 22px;
                            line-height: 22px;
                            margin-top: 22px;
                            display: flex;
                            justify-content: space-between;
                            align-items: flex-end;

                            .left {
                                display: flex;
                                align-items: flex-end;

                                p {
                                    display: flex;
                                    align-items: flex-end;
                                    margin-right: 5px;
                                }

                                .price {
                                    color: rgb(250, 88, 90);
                                    font-size: 28px;

                                    .f {
                                        font-size: 12px;
                                    }
                                }
                            }

                            .right {
                                width: 50px;
                                height: 20px;
                                border: 1px solid red;
                                color: red;
                                text-align: center;
                                line-height: 20px;
                                border-radius: 2px;
                                font-size: 12px;
                            }
                        }
                    }
                }
            }

            button {
                width: 250px;
                height: 70px;
                background-color: rgb(254, 228, 78);
                font-size: 24px;
                line-height: 70px;
                border: 0px solid #000;
                border-radius: 35px;
                margin: 75px auto;
                cursor: pointer;
            }
        }
    }
}